home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 66
/
Vol 66.iso
/
games
/
bluep.swf
/
scripts
/
frame_3
/
DoAction.as
Wrap
Text File
|
2013-04-24
|
1KB
|
55 lines
function setup()
{
killFakePointer();
_global.preloaderIsGone = false;
}
function run()
{
mouseCurserAdjust();
rotateAvatar();
sendToAds();
}
function rotateAvatar()
{
var _loc2_ = new Vector();
_loc2_._x = _xmouse - _root.pointer._x;
_loc2_._y = _ymouse - _root.pointer._y;
var _loc3_ = Math.atan2(_loc2_._y,_loc2_._x);
var _loc4_ = 360 * _loc3_ / 6.283185307179586;
_root.pointer._rotation = _loc4_;
}
function killFakePointer()
{
_root.pointer.gotoAndPlay(2);
}
function moveLettersOff(mc, xVal, yVal)
{
var _loc5_ = xVal;
var _loc6_ = yVal;
var _loc3_ = 0.75;
var _loc4_ = _global.FPSforTweenClass;
var _loc7_ = mc._x;
var _loc8_ = mc._y;
myTweening = new mx.transitions.Tween(mc,"_x",mx.transitions.easing.Strong.easeOut,_loc7_,_loc5_,_loc3_,true);
myTweening = new mx.transitions.Tween(mc,"_y",mx.transitions.easing.Strong.easeOut,_loc8_,_loc6_,_loc3_,true);
myTweening.FPS = _loc4_;
myTweening.FPS = _loc4_;
myTweening.onMotionFinished = function()
{
};
}
function sendToAds()
{
if(_global.preloaderIsGone)
{
_root.gotoAndPlay("logos");
_global.preloaderIsGone = false;
}
}
function mouseCurserAdjust()
{
_root.crosshair._x = _xmouse;
_root.crosshair._y = _ymouse;
}
stop();